package huffmancode;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;

public class test {
    public static void main(String[] args) {
//        HashMap<Byte, Integer> integerHashMap = new HashMap<Byte, Integer>();
//        byte a='q';
//        Integer integer = integerHashMap.get(a);
//        System.out.println(integer);
        String path = "H:/test1.txt";

        //创建文件的输入流
        FileInputStream is = null;
        try {
            is = new FileInputStream(path);
            //创建一个和源文件大小一样的byte[]数组
            byte[] b = new byte[is.available()];
            //读取文件
            is.read(b);
            System.out.println(Arrays.toString(b));
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }finally {

            try {
                is.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }


    }
}
